

#ifndef LUAOS_LUA_H
#define LUAOS_LUA_H

#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma once
#endif

#define LUAOS_VERSION "2.0.1"

#include "core/lua_core.h"
#include "core/lua_print.h"  /* print, trace, trace   */
#include "core/lua_pcall.h"  /* lua_pcall, lua_xpcall */
#include "core/lua_wrap.h"   /* lua_wrap, lua_unwrap  */
#include "core/lua_dofile.h" /* luaos_service(id)    */

/***********************************************************************************/

LUAOS_API bool is_debugging(lua_State* L);
LUAOS_API lua_State* luaos_state();
LUAOS_API typeof<io::service> luaos_service();

#define lua_local()   luaos_state()
#define lua_service() luaos_service()

/***********************************************************************************/

#endif //LUAOS_LUA_H
